<?php

namespace IDock\Insurance\DAJIA\Request;

use IDock\Insurance\DAJIA\Response\CommonResponse;
use IDock\Insurance\DAJIA\Response\InsuranceOrderQueryResponse;
use IDock\Insurance\DAJIA\Response\PreInquiryResponse;
use IDock\Visitor\Premium\PremiumInquiryVisitor;

/**
 * 查询保单接口
 */
class BusinessOrderNoQueryRequest extends AllDAJIARequest
{
    protected $code = 'ODR1007';

    protected $response = PreInquiryResponse::class;

    protected $urlTip = '获取业务订单号';

    /*** @var $visitor PremiumInquiryVisitor */
    protected $visitor;

    public function generate(): array
    {
        return [
            'businessInfo' => [
                'busiId' => uniqid(),
                'busiOpdpt' => $this->visitor->getExtInfoVisitor()->argc['busiOpdpt'],
                'busiOprCde' => $this->visitor->getExtInfoVisitor()->argc['busiOprCde'],
            ],
            'vhlType' => $this->visitor->getExtInfoVisitor()->argc['vhlType'],
        ];
    }
}